package main

import "fmt"

func isSubsequence(s string, t string) bool {
	i, j := 0, 0
	if s == "" {
		return true
	}
	if t == "" {
		return false
	}

	for {
		if s[i] == t[j] {
			i += 1
			j += 1
		} else {
			j += 1
		}
		if j == len(t) {
			if i < len(s) {
				return false
			}
			return true
		}
		if i == len(s) {
			return true
		}
	}
}

func main() {
	b := isSubsequence("b", "c")
	fmt.Println(b)
}
